package com.liu.resume.ui.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.liu.resume.R;
import com.liu.resume.ui.MainActivity;
import com.liu.resume.ui.base.BaseActivity;

import java.util.Timer;
import java.util.TimerTask;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/9/20.
 */
public class SplashActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
            final Timer timer = new Timer();
            timer.schedule(new TimerTask() {
                @Override
                public void run() {
                    timer.cancel();
                    goActivity(MainActivity.class);
                    finish();
                }
            }, 2500);

    }

    @Override
    protected int getLayoutView() {
        return R.layout.activity_splash;
    }

    @Override
    protected void initView() {

    }

    @Override
    public void onBackPressed() {
    }
}
